import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueRouter from "vue-router"
import './assets/css/common.css'
import {DeleteRequest, GetRequest, PostRequest, PutRequest} from './utils/api'

Vue.use(ElementUI, {size: "small"})
Vue.use(VueRouter)

Vue.config.productionTip = false
Vue.prototype.axios = axios
//插件形式使用请求
Vue.prototype.postRequest = PostRequest
Vue.prototype.getRequest = GetRequest
Vue.prototype.putRequest = PutRequest
Vue.prototype.deleteRequest = DeleteRequest

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
